package com.lsb.blog.service;

import com.lsb.blog.pojo.Tag;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lsb.blog.response.Result;
import com.lsb.blog.vo.TagVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liusibo
 * @since 2021-08-01
 */
public interface TagService extends IService<Tag> {
    //根据文章id查找tag集合
    List<TagVo> findTagsByArticleId(Long articleId);
    //查询最热标签
    List<TagVo> hot(int limit);
    //所有标签
    Result findAll();

    Result findAllDetail();

    Result findDetailById(Long id);
}
